srcdir       = @srcdir@
top_builddir = @top_builddir@
top_srcdir   = @top_srcdir@

SCM_CATEGORY = binary

include ../Makefile.ext

LIBFILES = binary--io.$(SOEXT)
SCMFILES = io.sci

GENERATED = Makefile
XCLEANFILES = binary--io.c io.sci

OBJECTS = binary--io.$(OBJEXT) binary.$(OBJEXT)

all : $(LIBFILES)

binary--io.$(SOEXT) : $(OBJECTS)
	$(MODLINK) binary--io.$(SOEXT) $(OBJECTS) $(EXT_LIBGAUCHE) $(LIBS)

binary--io.c io.sci : io.scm
	$(PRECOMP) -e -P -o binary--io $(srcdir)/io.scm

install : install-std

